package com.bean.entity;

import com.bean.annotation.Id;
import com.bean.annotation.Table;
import com.bean.annotation.TableField;

@Table(comment = "用户表")
public class User {
    @Id
    @TableField(comment = "用户id", length = 21)
    private String id;
    @TableField(length = 200, notNull = true, comment = "用户名称")
    private String name;
    @TableField(length = 21, notNull = true, comment = "用户年龄", defaultValue = "18")
    private Integer age;

}
